# tests/CMakeLists.txt
cmake_minimum_required(VERSION 3.15)
project(async_mysql_tests)

# 查找Catch2
find_package(Catch2 REQUIRED)

# 添加测试可执行文件
add_executable(async_mysql_tests
    test.cpp
)

# 链接库
target_link_libraries(async_mysql_tests
    PRIVATE 
        async_mysql::async_mysql
        Catch2::Catch2WithMain
)

# 添加测试
include(CTest)
include(Catch)
catch_discover_tests(async_mysql_tests)